package expressions.slogo;

import java.util.List;
import parsing.Separates;
import parsing.Token;

@Token(regex = "!")
@Separates
public class Not extends BooleanOperator
{

    public Not()
    {
        super(1);
    }

    @Override
    protected boolean combineBooleans(List<Boolean> results)
    {
        return !results.get(0);
    }

    @Override
    public int priority()
    {
        return Priority.LOGICAL.adjust(Modifier.HIGHEST);
    }

}
